package com.ld.rightsSystem.service.inf;

import com.ld.rightsSystem.dto.TUserDTO;
import com.ld.rightsSystem.exception.DBDataNotFoundException;
import com.ld.rightsSystem.pojo.TUser;
import com.ld.rightsSystem.vo.R;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author lhb
 * @since 2023-12-27
 */
public interface TUserService {

    R addTUser(TUserDTO tUserDTO);

    R getTUser(int pageNum, int pageSize);

    R editTUser(TUserDTO tUserDTO) throws DBDataNotFoundException;

    R deleteTUserById(Long id) throws DBDataNotFoundException;


    R checkFieldAvailable(String checkUName);

    R findTUserById(Long userId);
}
